package com.txc.service;

import com.txc.mapper.RootMapper;
import com.txc.pojo.Root;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RootServiceImpl implements RootService {
    @Autowired
    private RootMapper rootMapper;


    @Override
    public int addRoot(Root root) {
        return rootMapper.addRoot(root);
    }

    @Override
    public List<Root> queryAllRoot() {
        return rootMapper.queryAllRoot();
    }

    @Override
    public int RootCount() {
        return rootMapper.RootCount();
    }

    @Override
    public Root queryRootByName(String rootName) {
        return rootMapper.queryRootByName(rootName);
    }

    @Override
    public String queryPwdByName(String rootName) {
        return rootMapper.queryPwdByName(rootName);
    }
}
